package com.lc.question.service;

import com.lc.question.pojo.UserTab;

import java.util.Date;
import java.util.List;

public interface IUserTabService {

    public List<UserTab> userTabAll(String userId);

    public List<UserTab> findAllPubTab(String pub_Id);

    public List<UserTab> findTab_TIdUId(String user_Id,int plan_Id);

    public void addUserTab(UserTab userTab);

    //更改用户的状态为已参与
    public void updateMyTab(String user_Id, int plan_Id);

    public void updateOverTime(String user_Id, Date over_Time);

    //更改问卷表的状态为已结束
    public void updateTabSur(int plan_Id);

    //查询有关问卷表的所有用户
    public List<UserTab> findTab_TId(int plan_Id);

    public List<UserTab> findUserChange_SurPar(UserTab userTab);

    public int tabTotal(UserTab userTab);

    public List<UserTab> findTabChange_SurPar(UserTab userTab,int page,int total);

    public void deleteUserTab(int plan_Id);

    public void deleteUserTab2(int plan_Id,String user_Id);

}
